package com.lmy.springCloud.service;

import com.lmy.springCloud.entity.Member;
import com.lmy.springCloud.utils.Result;
import org.springframework.stereotype.Component;

@Component
public class MemberOpenFeignFallbackService implements MemberOpenFeignService {

    @Override
    public Result<Member> getMemberById(Long id) {
        return Result.error(null, "被调用服务异常，启用熔断降级的机制快速返回结果，防止请求线程堆积....");
    }

    @Override
    public Result saveMember(Member member) {
        return Result.error(null, "被调用服务异常，启用熔断降级的机制快速返回结果，防止请求线程堆积....");
    }
}
